package com.cate.pojo.dto;

import com.cate.constants.RegexPatterns;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @CreateTime: 2023/7/26
 * @Author: <==lhd==>
 * @Description: 员工信息
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class EmployeeInfoDTO implements Serializable {
    private Long id;

    private String username;

    private String name;

    @Pattern(regexp = RegexPatterns.PHONE_REGEX, message = "手机电话格式不正确")
    private String phone;

    private String sex;

    @Pattern(regexp = RegexPatterns.ID_CARD_REGEX, message = "身份证格式不正确")
    private String idNumber;
}
